package com.dao;

import com.entity.system.Advert;

import java.util.List;
import java.util.Map;

public interface AdvertMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Advert record);

    int insertSelective(Advert record);

    Advert selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);

    List<Advert> selectByCondition(Map map);

    List<Advert> findAdvertByMap(Map<String,Object> map);

    List<Advert> findByMapMerge(Map<String,Object> map);

    Long sumRedEnvelopeAmount(Map<String,Object> map);
}